home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form DFInfoS1
- BorderStyle = 3 'Fixed Dialog
- Caption = "DFInfo Sample"
- ClientHeight = 4380
- ClientLeft = 1350
- ClientTop = 1965
- ClientWidth = 5910
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 4785
- Left = 1290
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 4380
- ScaleWidth = 5910
- Top = 1620
- Width = 6030
- Begin VB.Frame Frame2
- Caption = "File Info"
- Height = 4155
- Left = 3015
- TabIndex = 13
- Top = 90
- Width = 2760
- Begin VB.TextBox Text1
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 285
- Left = 945
- TabIndex = 31
- Top = 1080
- Width = 1680
- End
- Begin VB.FileListBox File1
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 450
- Left = 765
- TabIndex = 30
- Top = 1440
- Width = 1860
- End
- Begin VB.DirListBox Dir1
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 705
- Left = 765
- TabIndex = 29
- Top = 315
- Width = 1860
- End
- Begin VB.PictureBox Picture2
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BorderStyle = 0 'None
- ForeColor = &H80000008&
- Height = 420
- Left = 180
- Picture = "DFINFOS1.frx":0000
- ScaleHeight = 511.305
- ScaleMode = 0 'User
- ScaleWidth = 511.305
- TabIndex = 14
- Top = 315
- Width = 420
- End
- Begin VB.Label Label20
- Alignment = 1 'Right Justify
- Appearance = 0 'Flat
- AutoSize = -1 'True
- BackColor = &H80000005&
- BackStyle = 0 'Transparent
- Caption = "Filename:"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 195
- Left = 240
- TabIndex = 32
- Top = 1170
- Width = 675
- End
- Begin VB.Label Label9
- BorderStyle = 1 'Fixed Single
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 240
- Left = 1035
- TabIndex = 18
- Top = 2250
- Width = 1590
- End
- Begin VB.Label Label19
- BorderStyle = 1 'Fixed Single
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 240
- Left = 1035
- TabIndex = 28
- Top = 3825
- Width = 1590
- End
- Begin VB.Label Label18
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "System:"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 195
- Left = 435
- TabIndex = 27
- Top = 3870
- Width = 555
- End
- Begin VB.Label Label17
- BorderStyle = 1 'Fixed Single
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 240
- Left = 1035
- TabIndex = 26
- Top = 3510
- Width = 1590
- End
- Begin VB.Label Label16
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "ReadOnly:"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 195
- Left = 240
- TabIndex = 25
- Top = 3555
- Width = 750
- End
- Begin VB.Label Label15
- BorderStyle = 1 'Fixed Single
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 240
- Left = 1035
- TabIndex = 24
- Top = 3195
- Width = 1590
- End
- Begin VB.Label Label14
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Hidden:"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 195
- Left = 435
- TabIndex = 23
- Top = 3240
- Width = 555
- End
- Begin VB.Label Label13
- BorderStyle = 1 'Fixed Single
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 240
- Left = 1035
- TabIndex = 22
- Top = 2880
- Width = 1590
- End
- Begin VB.Label Label12
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Archived:"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 195
- Left = 330
- TabIndex = 21
- Top = 2925
- Width = 675
- End
- Begin VB.Label Label11
- BorderStyle = 1 'Fixed Single
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 240
- Left = 1035
- TabIndex = 20
- Top = 2565
- Width = 1590
- End
- Begin VB.Label Label10
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Time:"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 195
- Left = 585
- TabIndex = 19
- Top = 2610
- Width = 390
- End
- Begin VB.Label Label8
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Date:"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 195
- Left = 585
- TabIndex = 17
- Top = 2295
- Width = 390
- End
- Begin VB.Label Label7
- BorderStyle = 1 'Fixed Single
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 240
- Left = 1035
- TabIndex = 16
- Top = 1935
- Width = 1590
- End
- Begin VB.Label Label6
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Size:"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 195
- Left = 630
- TabIndex = 15
- Top = 1980
- Width = 345
- End
- End
- Begin VB.Frame Frame1
- Caption = "Disk Info"
- Height = 3285
- Left = 90
- TabIndex = 0
- Top = 90
- Width = 2760
- Begin VB.DriveListBox Drive1
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 720
- TabIndex = 2
- Top = 360
- Width = 1950
- End
- Begin VB.PictureBox Picture1
- Appearance = 0 'Flat
- AutoSize = -1 'True
- BackColor = &H80000005&
- BorderStyle = 0 'None
- ForeColor = &H80000008&
- Height = 420
- Left = 120
- Picture = "DFINFOS1.frx":0242
- ScaleHeight = 420
- ScaleWidth = 420
- TabIndex = 1
- Top = 360
- Width = 420
- End
- Begin VB.Label lblSerialNum
- BorderStyle = 1 'Fixed Single
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 1560
- TabIndex = 36
- Top = 2880
- Width = 1095
- End
- Begin VB.Label Label22
- Alignment = 1 'Right Justify
- Caption = "Serial Number:"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 465
- TabIndex = 35
- Top = 2880
- Width = 1050
- End
- Begin VB.Label StartupDrive
- BorderStyle = 1 'Fixed Single
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 1575
- TabIndex = 12
- Top = 2520
- Width = 1095
- End
- Begin VB.Label Label5
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Start-Up Drive:"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 195
- Left = 465
- TabIndex = 11
- Top = 2565
- Width = 1050
- End
- Begin VB.Label NumFloppies
- BorderStyle = 1 'Fixed Single
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 1575
- TabIndex = 10
- Top = 2160
- Width = 1080
- End
- Begin VB.Label Label4
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "# Floppies:"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 195
- Left = 735
- TabIndex = 9
- Top = 2205
- Width = 780
- End
- Begin VB.Label VolumeName
- BorderStyle = 1 'Fixed Single
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 1305
- TabIndex = 8
- Top = 960
- Width = 1365
- End
- Begin VB.Label Label3
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Volume:"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 195
- Left = 585
- TabIndex = 7
- Top = 990
- Width = 630
- End
- Begin VB.Label Network
- BorderStyle = 1 'Fixed Single
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 1305
- TabIndex = 6
- Top = 1665
- Width = 1365
- End
- Begin VB.Label Label2
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Network:"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 195
- Left = 495
- TabIndex = 5
- Top = 1710
- Width = 720
- End
- Begin VB.Label FreeSpace
- BorderStyle = 1 'Fixed Single
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 1305
- TabIndex = 3
- Top = 1305
- Width = 1350
- End
- Begin VB.Label Label1
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Free Space:"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 195
- Left = 240
- TabIndex = 4
- Top = 1350
- Width = 990
- End
- End
- Begin DfinfoLib.FileInfo FileInfo1
- Left = 2280
- Top = 4200
- _Version = 131076
- _ExtentX = 847
- _ExtentY = 847
- _StockProps = 0
- Filename = ""
- End
- Begin DfinfoLib.DiskInfo DiskInfo1
- Height = 480
- Left = 1800
- TabIndex = 34
- Top = 4200
- Visible = 0 'False
- Width = 480
- _Version = 131076
- _ExtentX = 847
- _ExtentY = 847
- _StockProps = 0
- Disk = ""
- End
- Begin VB.Label Label21
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BackStyle = 0 'Transparent
- Caption = "This sample was provided by Peter Franks. Mabry Software would like to thank him for his unsolicited support."
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 615
- Left = 120
- TabIndex = 33
- Top = 3480
- Width = 2775
- End
- Attribute VB_Name = "DFInfoS1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Dir1_Change()
- File1.Path = Dir1.Path
- File1.Refresh
- End Sub
- Private Sub Drive1_Change()
- Dir1.Path = UCase(Left(Drive1.Drive, 1)) + ":\"
- Dir1.Refresh
- DiskInfo1.Disk = Drive1
- VolumeName = DiskInfo1.VolumeName
- FreeSpace = DiskInfo1.FreeSpace
- lblSerialNum = Format$(Left$(Hex$(DiskInfo1.SerialNumber), 4), "0000") & "-" & Format$(Right$(Hex$(DiskInfo1.SerialNumber), 4), "0000")
- If DiskInfo1.Network Then
- Network = "Network"
- Else
- Network = "Local"
- End If
- End Sub
- Private Sub File1_Click()
- Dim Path$
- If Not Right$(Dir1.Path, 1) = "\" Then
- Path$ = Dir1.Path + "\"
- Else
- Path$ = Dir1.Path
- End If
- FileInfo1.filename = Path$ + File1.filename
- Label7.Caption = Str$(FileInfo1.Size)
- Label9.Caption = FileInfo1.FileDate
- Label11.Caption = FileInfo1.FileTime
- If FileInfo1.IsArchived Then
- Label13.Caption = "True"
- Else
- Label13.Caption = "False"
- End If
- If FileInfo1.IsHidden Then
- Label15.Caption = "True"
- Else
- Label15.Caption = "False"
- End If
- If FileInfo1.IsReadOnly Then
- Label17.Caption = "True"
- Else
- Label17.Caption = "False"
- End If
- If FileInfo1.IsSystem Then
- Label19.Caption = "True"
- Else
- Label19.Caption = "False"
- End If
- End Sub
- Private Sub Form_Load()
- DFInfoS1.Left = (Screen.Width - DFInfoS1.Width) / 2
- DFInfoS1.Top = (Screen.Height - DFInfoS1.Height) / 2
- Call Drive1_Change ' force load of labels
- NumFloppies = DiskInfo1.NumFloppies
- StartupDrive = DiskInfo1.StartupDrive
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- End
- End Sub
- Private Sub Text1_Change()
- Dim Path$
- If Not Right$(Dir1.Path, 1) = "\" Then
- Path$ = Dir1.Path + "\"
- Else
- Path$ = Dir1.Path
- End If
- FileInfo1.filename = Path$ + text1.Text
- Label7.Caption = Str$(FileInfo1.Size)
- Label9.Caption = FileInfo1.FileDate
- Label11.Caption = FileInfo1.FileTime
- If FileInfo1.IsArchived Then
- Label13.Caption = "True"
- Else
- Label13.Caption = "False"
- End If
- If FileInfo1.IsHidden Then
- Label15.Caption = "True"
- Else
- Label15.Caption = "False"
- End If
- If FileInfo1.IsReadOnly Then
- Label17.Caption = "True"
- Else
- Label17.Caption = "False"
- End If
- If FileInfo1.IsSystem Then
- Label19.Caption = "True"
- Else
- Label19.Caption = "False"
- End If
- End Sub
-